package biz.ezcom.design.pattern.proxy.dynamic;

import java.lang.reflect.Proxy;


public class Client {
	public static void main(String[] args) {
		Target target = new TargetImpl();
		ProxyHandler handler = new ProxyHandler(target);
		Target proxy = (Target)Proxy.newProxyInstance(target.getClass().getClassLoader(),
													  target.getClass().getInterfaces(), 
													  handler);
		proxy.operation();
	}
}
